package com.kancy.vip.pattern.adapter.v2;

import com.kancy.vip.pattern.adapter.v2.impl.LoginForThirdServiceImpl;

/**
 * @author kancy
 * @date 2019/3/17 17:05
 */
public class AdapterTests {

	public static void main(String[] args) {

		LoginForThirdService service = new LoginForThirdServiceImpl();
		User user = new User();
		Result result = service.loginForQQ(user);
		System.out.println(result);

		result = ((LoginService) service).login(user.getUsername(), user.getPassword());
		System.out.println(result);

	}
}
